import * as types from './mutations_types';

module.exports = {
	[types.UPDATE_NEW_LIST](state, list) {
		state.newList = list;
	},
	
	[types.INSERT_NEW_LIST](state, opt) {
		state.newList.push(opt.item);
		state.newList = state.newList.splice(0, opt.size)
	}
}